<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<%=path%>/css/font.css" rel="stylesheet" type="text/css">
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/pagetitle.js"></script>
</head>
<body>
<div id="mainFrame">
  <div class="rightSider2">
    <div class="logined_info2">
		<span class="bluefont18bdrop"><a href="<%=path%>/main.do"><img src="<%=path%>/images/logo2.gif" border="0" align="absmiddle" /></a> | 退款结果</span>
	</div>
    <div class="edit_pass">
      <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="blueborder">
        <tr>
          <td width="100%"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="1">
              <tr>
                <td height="30" colspan="2" align="right" background="<%=path%>/images/bg_table.gif" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="7" cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
                  <logic:present name="netReturnResponse">
					<logic:equal name="netReturnResponse" property="success" value="1">
                  <tr>
                    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="5">
                        <tr>
                          <td width="25%" align="right" valign="top"><img src="<%=path%>/images/success_icon.gif" width="60" height="56" border="0" align="absmiddle" /></td>
                          <td width="75%" align="left" class="orang16b">恭喜，退款申请成功！</td>
                        </tr>
                    </table></td>
                  </tr>
                  </logic:equal>
					<logic:equal name="netReturnResponse" property="success" value="0">
					<tr>
                    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="5">
                        <tr>
                          <td width="25%" align="right" valign="top"><img src="<%=path%>/images/failure_icon.gif" width="60" height="56" border="0" align="absmiddle" /></td>
                          <td width="75%" align="left" class="orang16b">对不起，退款申请失败！<bean:write name="netReturnResponse" property="returnMessage"/></td>
                        </tr>
                    </table></td>
                  </tr>
                  </logic:equal>
				</logic:present>
				<logic:notPresent name="netReturnResponse">
				  <tr>
                    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="5">
                        <tr>
                          <td width="25%" align="right" valign="top"><img src="<%=path%>/images/failure_icon.gif" width="60" height="56" border="0" align="absmiddle" /></td>
                          <td width="75%" align="left" class="orang16b"><logic:present name="org.apache.struts.action.ERROR"><html:errors/></logic:present>
							<logic:notPresent name="org.apache.struts.action.ERROR">系统出现不可预知的错误，可能是后台无法与您所选择的银行建立连接，请稍后重新尝试</logic:notPresent></td>
                        </tr>
                    </table></td>
                  </tr>
				</logic:notPresent>
                </table></td>
                </tr>
          </table>
        <logic:present name="netReturnResponse">
			<logic:present name="notExsitTrans">  
		        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDDFDE">
		        <tr>
		          <td height="25" colspan="2" align="left" bgcolor="#FFFFFF" class="orang16b"> 不存在以下交易或者交易状态不正确 </td>
		        </tr>
		        <tr>
		          <td height="25" width="25%" align="right" bgcolor="#FAFBFB" class="fontblue14" >交易编号</td>
		          <td height="25" width="75%" align="left" bgcolor="#FFFFFF" class="fontblue14">
		          <logic:iterate id="notExsitTrans" name="notExsitTrans">
		          <bean:write name="notExsitTrans" property="orderId"/>    
		          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		          </logic:iterate>
		          </td>
		        </tr>
		        </table>
      	    </logic:present>
			<logic:present name="illegalTrans">  
		        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDDFDE">
		        <tr>
		          <td height="25" colspan="4" align="left" bgcolor="#FFFFFF" class="orang16b"> 以下交易退款金额大于交易金额 </td>
		        </tr>
		        <tr>
		          <td height="25" width="25%" align="right" bgcolor="#FAFBFB" class="fontblue14" >交易编号</td>
		          <td height="25" width="75%" align="left" bgcolor="#FFFFFF" class="fontblue14">
		          <logic:iterate id="illegalTrans" name="illegalTrans">
		          <bean:write name="illegalTrans" property="orderId"/>
		          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		          </logic:iterate>
		          </td>
		        </tr>
		        </table>
      	    </logic:present>
      </logic:present>
          </td>
        </tr>
      </table>
      <div style="clear:both;"></div>
      <div class="box" id="cont_1" > <br />
          <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1">
          <tr>
            <td height="55" align="center">
			<logic:equal name="netReturnResponse" property="success" value="1">
			<logic:equal name="netReturnResponse" property="payModel" value="1">
					<input name="button33" type="button" class="button_style" onclick="location.href='<%=path%>/route.do?modual=manage$waitingPay';" value="支付"/>
			</logic:equal>
			</logic:equal>
            <input name="button33" type="button" class="button_style" onclick="window.close()" value="关 闭"/>
            </td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
<div style="clear:both;"></div>
</body>
</html>